#include<window.h>
HMODULE *user32,gdi32,kernel32,ole32,gdiplus,msimg32;
void loadLibs(){
	#define SAFE_LOAD_LIB(name, var) \
        var = GetModuleHandleA(name); \
        if (!var) { \
            var = LoadLibraryA(name); \
            if (!var) { \
                MessageBoxA(NULL, "Failed to load " name, "Error", MB_ICONERROR); \
            } \
        }

	SAFE_LOAD_LIB("user32", user32);
	SAFE_LOAD_LIB("gdi32", gdi32);
	SAFE_LOAD_LIB("ole32", ole32);
    SAFE_LOAD_LIB("gdiplus", gdiplus);
    SAFE_LOAD_LIB("msimg32", msimg32);
}